package org.cuit.echo.seon;

/**
 * 静态内部类实现
 * 与双检锁同属于懒汉模式
 * @author SeonExlike
 * @since 2024/3/31
 */
public class StaticInnerClassSingleton {
    private StaticInnerClassSingleton() {}

    private static class SingletonHolder {
        private static final StaticInnerClassSingleton INSTANCE = new StaticInnerClassSingleton();
    }

    public static StaticInnerClassSingleton getInstance() {
        return SingletonHolder.INSTANCE;
    }

}
